package module3;

import java.io.PrintStream;

public class NuclearPowerPlant {
	static final int NUMBER_REPEATS = 3;
	PrintStream out;
	NuclearPowerPlant(){
		out = new PrintStream(System.out);
	}
	void printWarning(){
		out.printf("NUCLEAR CORE UNSTABLE!!!\nQuarantine is in effect.\nSurrounding hamlets will be evacuated.\nAnti-radiationsuits and iodine pills are mandatory\n\n");
	}
	void start (){
		for(int i = 0;i < NUMBER_REPEATS;i++){
			printWarning();
		}
	}

	public static void main(String[] args) {
		new NuclearPowerPlant().start();
	}

}
